package com.ycc.springcloud;


import com.ycc.myrole.YccRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableHystrixDashboard  //开启流监控
@EnableEurekaClient
@EnableDiscoveryClient //服务发现
@EnableCircuitBreaker
@RibbonClient(name = "SPRING-CLOUD-PROVIDER-DEPT",configuration = YccRule.class)
public class DeptConsumerDashboard_8080 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumerDashboard_8080.class,args);
    }
}
